﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.Xml.Linq;

namespace Ocean.His.MedicalInsurance.Other
{
    /// <summary>
    /// 医保字典表
    /// 1901
    /// </summary>
    [DataContract]
    public class DicDataModel
    {
        /// <summary>
        /// 字典类型
        /// </summary>
        [DataMember(Name = "type")]
        public string Type { get; set; }

        /// <summary>
        /// 父字典键值
        /// </summary>
        [DataMember(Name = "parent_value")]
        public string ParentValue { get; set; }

        /// <summary>
        /// 行政区划
        /// </summary>
        [DataMember(Name = "admdvs")]
        public string Admdvs { get; set; }

        /// <summary>
        /// 查询日期
        /// </summary>
        [DataMember(Name = "date")]
        public string Date { get; set; }

        /// <summary>
        /// 有效标志
        /// </summary>
        [DataMember(Name = "vali_flag")]
        public string ValiFlag { get; set; }
    }

    [DataContract]
    public class DicDataInRequestModel
    {
        [DataMember(Name = "data")]
        public DicDataModel DicDataModel { get; set; }
    }

    /// <summary>
    /// 字典表查询
    /// </summary>
    [DataContract]
    public class SI1901RequestModel : SIBaseRequestModel
    {
        /// <summary>
        /// 交易输入
        /// </summary>
        [DataMember(Name = "input")]
        public DicDataInRequestModel Input { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="medicalInsuranceOption"></param>
        /// <param name="dicDataModel"></param>
        public SI1901RequestModel(MedicalInsuranceOption medicalInsuranceOption
            ,DicDataModel dicDataModel) : base(medicalInsuranceOption)
        {
            Input = new DicDataInRequestModel();
            Infno = MedicalInsuranceConst.Business1901;
            Input.DicDataModel = dicDataModel;
        }
    }
}
